import request from '@/utils/request'

// 查询反馈列表
export function listFeedback (query) {
  return request({
    url: '/angel/feedback/list',
    method: 'get',
    params: query
  })
}

// 查询反馈详细
export function getFeedback (feedbackId) {
  return request({
    url: '/angel/feedback/' + feedbackId,
    method: 'get'
  })
}

// 请求处理视频
export function processorVideo (feedbackId) {
  return request({
    url: '/angel/feedback/processorVideo/' + feedbackId,
    method: 'get'
  })
}

// 新增反馈
export function addFeedback (data) {
  return request({
    url: '/angel/feedback',
    method: 'post',
    data: data
  })
}

// 修改反馈
export function updateFeedback (data) {
  return request({
    url: '/angel/feedback',
    method: 'put',
    data: data
  })
}

// 删除反馈
export function delFeedback (feedbackId) {
  return request({
    url: '/angel/feedback/' + feedbackId,
    method: 'delete'
  })
}

// 导出反馈
export function exportFeedback (query) {
  return request({
    url: '/angel/feedback/export',
    method: 'get',
    params: query
  })
}
